<script lang="ts" >
import { defineComponent, h } from "vue";

export default defineComponent({
  props: {
    render: Function,
    params: Object,
  },
  // 使用渲染函数
  render() {
    return h(this.render, this.params);
  },
});
</script>
